package com.javax;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/**
 * ID注解规则设置
 * 
 * @author witts
 * @project seller-core-utils
 * @package cc.zeelan.framework.utils.valid.custom
 * @version 1.0
 * @message 林花谢了春红，太匆匆。无奈朝来寒雨，晚来风
 */
public class _IDCustomValid implements ConstraintValidator<IDCustomValid, String> {
	@Override
	public void initialize(IDCustomValid constraintAnnotation) {
	}

	@Override
	public boolean isValid(String value, ConstraintValidatorContext context) {
		if (null == value) {
			return false;
		}
		if (value.trim().length() >= 32) {
			return true;
		}
		return false;
	}

}